package com.petcare;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

public class mainMenu extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_mainmenu);
	    
	    
	    final ImageButton imageButton1 = (ImageButton) findViewById(R.id.imageButton1);
        imageButton1.setOnClickListener(new View.OnClickListener() {
            
        	public void onClick(View v) {
            	Intent myIntent = new Intent(mainMenu.this, Pets.class);
            	startActivity(myIntent);
            }
        });
        
        final ImageButton imageButton2 = (ImageButton) findViewById(R.id.imageButton2);
        imageButton2.setOnClickListener(new View.OnClickListener() {
            
        	public void onClick(View v) {
            	Intent myIntent = new Intent(mainMenu.this, newpet.class);
            	startActivity(myIntent);
            }
        });
        
        final ImageButton button3 = (ImageButton) findViewById(R.id.ImageButton03);
        button3.setOnClickListener(new View.OnClickListener() {
            
        	public void onClick(View v) {
            	Intent myIntent = new Intent(mainMenu.this, help.class);
            	startActivity(myIntent);
            }
        });
        
        final ImageButton ImageButton04 = (ImageButton) findViewById(R.id.ImageButton04);
        ImageButton04.setOnClickListener(new View.OnClickListener() {
            
        	public void onClick(View v) {
            	Intent myIntent = new Intent(mainMenu.this, info.class);
            	startActivity(myIntent);
            }
        });
        
        final ImageButton ImageButton02 = (ImageButton) findViewById(R.id.ImageButton02);
        ImageButton02.setOnClickListener(new View.OnClickListener() {
            
        	public void onClick(View v) {
            	Intent myIntent = new Intent(mainMenu.this, alarms.class);
            	startActivity(myIntent);
            }
        });
        
        final ImageButton ImageButton01 = (ImageButton) findViewById(R.id.ImageButton01);
        ImageButton01.setOnClickListener(new View.OnClickListener() {
            
        	public void onClick(View v) {
            	Intent myIntent = new Intent(mainMenu.this, vets.class);
            	startActivity(myIntent);
            }
        });
        
	    
	
	    // TODO Auto-generated method stub
	}
	
	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}
